package com.edu.bean;

import java.util.List;

public class Writer {
    private int writerId;
    private String writerName;
    private String writerSex;
    private int writerAge;
    private List<Book> bookList;

    public List<Book> getBookList() {
        return bookList;
    }

    public void setBookList(List<Book> bookList) {
        this.bookList = bookList;
    }

    public Writer() {
    }

    public int getWriterId() {
        return writerId;
    }

    public void setWriterId(int writerId) {
        this.writerId = writerId;
    }

    public String getWriterName() {
        return writerName;
    }

    public void setWriterName(String writerName) {
        this.writerName = writerName;
    }

    public String getWriterSex() {
        return writerSex;
    }

    public void setWriterSex(String writerSex) {
        this.writerSex = writerSex;
    }

    public int getWriterAge() {
        return writerAge;
    }

    public void setWriterAge(int writerAge) {
        this.writerAge = writerAge;
    }

    @Override
    public String toString() {
        return "Writer{" +
                "writerId=" + writerId +
                ", writerName='" + writerName + '\'' +
                ", writerSex='" + writerSex + '\'' +
                ", writerAge=" + writerAge +
                '}';
    }
}
